/*
 * ComboBoxWizard6.java
 *
 * Created on May 26, 2006, 4:38 AM
 */


import java.awt.Color;
import java.awt.Component;
import java.awt.PopupMenu;
import java.util.Vector;
import javax.swing.table.TableColumn;

/**
 *
 * @author  yaco
 */
public class ComboBoxWizard6 extends javax.swing.JFrame {

    /** Creates new form ComboBoxWizard8 */
    public ComboBoxWizard6() {
        initComponents();
        this.setSize(550,350);
        this.setLocation(250,200);     
   
    }
    

    
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jButton5 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        jSeparator2 = new javax.swing.JSeparator();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable(5,10);

        getContentPane().setLayout(null);

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Combo Box Wizard");
        setIconImage(java.awt.Toolkit.getDefaultToolkit().getImage(this.getClass().getResource("mysql.JPEG")));
        setResizable(false);
        jLabel2.setText("How would you like the columns in your combo box?");
        getContentPane().add(jLabel2);
        jLabel2.setBounds(10, 20, 450, 14);

        jLabel3.setForeground(new java.awt.Color(255, 0, 0));
        jLabel3.setText("Note that only the ordered columns apper here");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(10, 230, 530, 20);

        jButton5.setText("Cancel");
        jButton5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton5MouseClicked(evt);
            }
        });

        getContentPane().add(jButton5);
        jButton5.setBounds(130, 280, 80, 23);

        jButton6.setText("<  Back");
        jButton6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton6MouseClicked(evt);
            }
        });

        getContentPane().add(jButton6);
        jButton6.setBounds(260, 280, 90, 23);

        jButton7.setText("Next  >");
        jButton7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton7MouseClicked(evt);
            }
        });

        getContentPane().add(jButton7);
        jButton7.setBounds(350, 280, 90, 23);

        jButton8.setText("Finish");
        jButton8.setEnabled(false);
        jButton8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton8MouseClicked(evt);
            }
        });

        getContentPane().add(jButton8);
        jButton8.setBounds(440, 280, 90, 23);

        getContentPane().add(jSeparator2);
        jSeparator2.setBounds(10, 260, 520, 20);

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null}
            },
            new String [] {
                "Title 1"
            }
        ));
        jTable1.setEnabled(false);
        jScrollPane4.setViewportView(jTable1);

        getContentPane().add(jScrollPane4);
        jScrollPane4.setBounds(40, 50, 452, 170);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton8MouseClicked
// TODO add your handling code here:
        
    }//GEN-LAST:event_jButton8MouseClicked

    private void jButton6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton6MouseClicked
// TODO add your handling code here:
         this.dispose();
         if (ComboBoxWizard1.comboBoxWizard1.flag==false){
             ComboBoxWizard1.comboBoxWizard2.setVisible(true);
        }
        else{
             ComboBoxWizard1.comboBoxWizard5.setVisible(true);
        }
        
    }//GEN-LAST:event_jButton6MouseClicked

    private void jButton7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton7MouseClicked
// TODO add your handling code here:
        this.setVisible(false);
        ComboBoxWizard1.comboBoxWizard7=new ComboBoxWizard7();
        ComboBoxWizard1.comboBoxWizard7.setVisible(true);       
    }//GEN-LAST:event_jButton7MouseClicked

    private void jButton5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton5MouseClicked
        this.dispose();
// TODO add your handling code here:
    }//GEN-LAST:event_jButton5MouseClicked
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
               ComboBoxWizard1.comboBoxWizard6.setVisible(true);
            }
        });
    }

 
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JSeparator jSeparator2;
    public javax.swing.JTable jTable1;
    // End of variables declaration//GEN-END:variables
    
}
